package org.dromara.business.domain.vo;

import java.util.Date;
import com.fasterxml.jackson.annotation.JsonFormat;
import org.dromara.business.domain.ContentInteraction;
import com.alibaba.excel.annotation.ExcelIgnoreUnannotated;
import com.alibaba.excel.annotation.ExcelProperty;
import org.dromara.common.excel.annotation.ExcelDictFormat;
import org.dromara.common.excel.convert.ExcelDictConvert;
import io.github.linpeilie.annotations.AutoMapper;
import lombok.Data;

import java.io.Serial;
import java.io.Serializable;
import java.util.Date;



/**
 * 统一内容互动行为视图对象 t_content_interaction
 *
 * @author Hao Tong Xue
 * @date 2025-04-21
 */
@Data
@ExcelIgnoreUnannotated
@AutoMapper(target = ContentInteraction.class)
public class ContentInteractionVo implements Serializable {

    @Serial
    private static final long serialVersionUID = 1L;

    /**
     * 互动记录ID
     */
    @ExcelProperty(value = "互动记录ID")
    private Long id;

    /**
     * 内容ID（视频/音频等）
     */
    @ExcelProperty(value = "内容ID", converter = ExcelDictConvert.class)
    @ExcelDictFormat(readConverterExp = "视=频/音频等")
    private Long contentId;

    /**
     * 内容类型：1-视频，2-音频，3-文章
     */
    @ExcelProperty(value = "内容类型：1-视频，2-音频，3-文章", converter = ExcelDictConvert.class)
    @ExcelDictFormat(dictType = "content_type")
    private Integer contentType;

    /**
     * 互动类型：1-点赞，2-投币，3-收藏，4-转发
     */
    @ExcelProperty(value = "互动类型：1-点赞，2-投币，3-收藏，4-转发", converter = ExcelDictConvert.class)
    @ExcelDictFormat(dictType = "action_type")
    private Integer actionType;

    /**
     * 互动值（如投币数量）
     */
    @ExcelProperty(value = "互动值", converter = ExcelDictConvert.class)
    @ExcelDictFormat(readConverterExp = "如=投币数量")
    private Integer actionValue;

    /**
     * 互动时间
     */
    @ExcelProperty(value = "互动时间")
    private Date actionTime;

    /**
     * 投币类型（仅action_type=2时有效）：1-普通，2-双倍
     */
    @ExcelProperty(value = "投币类型", converter = ExcelDictConvert.class)
    @ExcelDictFormat(dictType = "coin_type")
    private Integer coinType;

    /**
     * 转发附加内容（仅action_type=4时有效）
     */
    @ExcelProperty(value = "转发附加内容", converter = ExcelDictConvert.class)
    @ExcelDictFormat(readConverterExp = "仅=action_type=4时有效")
    private String forwardContent;

    /**
     * 备注
     */
    @ExcelProperty(value = "备注")
    private String remark;


}
